package com.pdf.repository;
/*
 *@ClassName: PdfRepository
 *@Description: TODO
 *@author: 郑波
 *@date: 2019-04-13 19:37
 *@version: 1.0
 */

import com.pdf.dataObject.Pdf;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PdfRepository extends JpaRepository<Pdf,String> {
    @Query(value = "select * from pdf where userUid=?",nativeQuery = true)
    List<Pdf> getByUserUid(String userUid);

    Pdf getByUserUidAndAndFileName(String userUid,String fileName);
}
